package com.itheima.bean;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.stereotype.Component;

/**
 * ClassName: Cat
 * Description:
 * Date: 2023/03/22 PM 10:53:16
 * <p>
 * project: springboot
 * package: com.itheima.bean
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Component("tom")
@ConditionalOnBean(name = "jerry")
// @ConditionalOnWebApplication
@ConditionalOnNotWebApplication
public class Cat {
}
